package com.project.forlearning.dao;

import com.project.forlearning.pojo.Resource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BackResourceMapper {

    //查询资源
    List<Resource> findResource(@Param("resourceId") Integer resourceId, @Param("status") String status);

    //删除资源
    boolean deleteResource(@Param("resourceId") Integer resourceId, @Param("status") String status);

    //添加资源
    boolean addResource(@Param("resource") Resource resource);

    //修改资源
    boolean updateResource(@Param("resource") Resource resource);

    //添加资源标签
    boolean addResource(@Param("resourceId") Integer resourceId, @Param("labels") String labels);
}
